package cn.itsource.pet.mapper;

import cn.itsource.pet.domain.Pet;
import cn.itsource.pet.domain.PetDto;
import cn.itsource.pet.query.PetQuery;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
* @Entity cn.itsource.pet.domain.Pet
*/
public interface PetMapper extends Mapper<Pet> {

    @Select("select * from t_pet where state = 1")
    List<Pet> queryHomePage(PetDto petDto);


    List<Pet> findPage(PetQuery petQuery);
}
